package com.cskaoyan.service;

import com.cskaoyan.model.Role;
import com.cskaoyan.model.bo.RoleBO;
import com.cskaoyan.model.bo.BaseParamBO;
import com.cskaoyan.model.bo.RolePermissionBO;
import com.cskaoyan.model.vo.DataVO;
import com.cskaoyan.model.vo.GetRoleVO;
import com.cskaoyan.model.vo.PermissionDataVO;

public interface RoleService {
    DataVO<GetRoleVO> query(BaseParamBO param);

    Role create(RoleBO roleBO);

    DataVO<Role> queryRole(BaseParamBO param, String name);

    void update(Role role);

    void delete(Role role);

    PermissionDataVO getPermissions(String roleId);

    void updatePermissions(RolePermissionBO permissionBO);
}
